package com.xiangban.feign;

import com.xiangban.feign.fallback.CommonsendSmsFallback;
import com.xiangban.model.SmsParameterDto;
import com.xiangban.model.res.ApiResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author ly
 * @date 2022/1/20 14:40
 */
@Component
@FeignClient(value = "${system.message}",fallbackFactory = CommonsendSmsFallback.class)
public interface CommonsendSmsFeign {
    @RequestMapping("/send/sendSms")
    @ApiOperation("短信发送")
    ApiResult<Object> sendSms(SmsParameterDto smsParameterDto);
}
